package net.haiyue.api.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Entity
@Table(name = "event")
public class Event extends BaseEntity {
    @Column(length = 100)
    private String summary;
    private Integer duration;
    @Column(length = 100)
    private String comment;
    @Column(length = 100)
    private String oper;
    @Column
    private Date create_time;
    @Column
    private Integer raid;
    @Column
    private Integer percent;
    @Transient
    private String project;
    @Transient
    private String module;

    public Event() {
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public Integer getRaid() {
        return raid;
    }

    public void setRaid(Integer raid) {
        this.raid = raid;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getPercent() {
        return percent;
    }

    public void setPercent(Integer percent) {
        this.percent = percent;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Event{" +
                "summary='" + summary + '\'' +
                ", duration=" + duration +
                ", comment='" + comment + '\'' +
                ", oper='" + oper + '\'' +
                ", create_time=" + create_time +
                ", summary='" + summary + '\'' +
                ", percent=" + percent +
                '}';
    }
}